Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 4.11
Using DEF and USE to share font properties |
|
Click on the image to view the VRML scene. |
#VRML V2.0 utf8 # The VRML 2.0 Sourcebook # Copyright (c) 1997 # Andrea L. Ames, David R. Nadeau, and John L. Moreland Group { children [ Shape { appearance DEF White Appearance { material Material { } } geometry Text { string [ "Over", "Strike" ] fontStyle DEF myFontStyle FontStyle { size 6.0 family "TYPEWRITER" justify "MIDDLE" } } }, Shape { appearance USE White geometry Text { string [ "----", "------" ] fontStyle USE myFontStyle } } ] }